<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>Projet Jetpack:  Fichier source de /home/p1006250/lif7-projet-jetpack/src/main.c</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
</script>


</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Projet Jetpack
   
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Généré par Doxygen 1.7.6.1 -->
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Page&#160;principale</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Fichiers</span></a></li>
      <li><a href="dirs.html"><span>Répertoires</span></a></li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>Liste&#160;des&#160;fichiers</span></a></li>
      <li><a href="globals.html"><span>Membres&#160;de&#160;fichier</span></a></li>
    </ul>
  </div>
</div>
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
  initNavTree('main_8c.html','');
</script>
<div id="doc-content">
<div class="header">
  <div class="headertitle">
<div class="title">main.c</div>  </div>
</div><!--header-->
<div class="contents">
<a href="main_8c.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#include &quot;<a class="code" href="_jeu_8h.html">Jeu.h</a>&quot;</span>
<a name="l00002"></a>00002 <span class="preprocessor">#include &quot;<a class="code" href="_ncurs_jeu_8h.html">NcursJeu.h</a>&quot;</span>
<a name="l00003"></a>00003 <span class="preprocessor">#include &quot;<a class="code" href="_sdl_jeu_8h.html">SdlJeu.h</a>&quot;</span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &quot;<a class="code" href="_menu_8h.html">Menu.h</a>&quot;</span>
<a name="l00005"></a>00005 
<a name="l00006"></a>00006 
<a name="l00007"></a><a class="code" href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">00007</a> <span class="keywordtype">int</span> <a class="code" href="main_8c.html#a3c04138a5bfe5d72780bb7e82a18e627">main</a>(<span class="keywordtype">int</span> argc,<span class="keywordtype">char</span>** argv)
<a name="l00008"></a>00008 {
<a name="l00009"></a>00009     TTF_Init();
<a name="l00010"></a>00010     TTF_Font *Mario = TTF_OpenFont(<span class="stringliteral">&quot;data/SuperMario256.ttf&quot;</span>, 70);
<a name="l00011"></a>00011     TTF_Font *Snorlax = TTF_OpenFont(<span class="stringliteral">&quot;data/LittleSnorlax.ttf&quot;</span>, 25);
<a name="l00012"></a>00012     TTF_SetFontStyle(Mario, TTF_STYLE_NORMAL | TTF_STYLE_BOLD);
<a name="l00013"></a>00013     TTF_SetFontStyle(Snorlax,  TTF_STYLE_BOLD);
<a name="l00014"></a>00014     SDL_Color Noir = {0, 0, 0};
<a name="l00015"></a>00015     SDL_Color Rouge = {255, 0, 0};
<a name="l00016"></a>00016     SDL_Surface *ecran = NULL, *fond = NULL;
<a name="l00017"></a>00017     <a class="code" href="_menu_8h.html#a81ef2f4a6c4e4f626cdff90adc5ffbb0">ChoixMenu</a> cm;
<a name="l00018"></a>00018         <span class="keywordflow">do</span>
<a name="l00019"></a>00019         {
<a name="l00020"></a>00020                 <a class="code" href="_menu_8c.html#a870bfaef1ea13141e4346ea02cd3e9d1" title=" Brief Description  Affiche le menu.  ">menuAff</a>(ecran,fond,Mario,Snorlax,Noir,Rouge);
<a name="l00021"></a>00021                 cm = <a class="code" href="_menu_8c.html#acb282ec339250edc43e58f6a064d94ab" title=" Brief Description  Affiche le choix du joueur.  ">menuQuestion</a>();
<a name="l00022"></a>00022         } <span class="keywordflow">while</span>(cm!=<a class="code" href="_menu_8h.html#a81ef2f4a6c4e4f626cdff90adc5ffbb0a8e639928892ca56805cccf6606dcff63">QUITTER</a>);
<a name="l00023"></a>00023     TTF_CloseFont(Mario);
<a name="l00024"></a>00024     TTF_CloseFont(Snorlax);
<a name="l00025"></a>00025 
<a name="l00026"></a>00026 
<a name="l00027"></a>00027     <span class="comment">/*Ncurses*/</span>
<a name="l00028"></a>00028 
<a name="l00029"></a>00029 <span class="comment">//      Jeu Jeu;</span>
<a name="l00030"></a>00030 <span class="comment">//      jeuInit(&amp;Jeu);</span>
<a name="l00031"></a>00031 <span class="comment">//    ncursBoucle(&amp;Jeu);</span>
<a name="l00032"></a>00032 <span class="comment">//      jeuLibere(&amp;Jeu);</span>
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 
<a name="l00035"></a>00035 
<a name="l00036"></a>00036     <span class="keywordflow">return</span> 0;
<a name="l00037"></a>00037 }
<a name="l00038"></a>00038 
</pre></div></div><!-- contents -->
</div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="main_8c.html">main.c</a>      </li>

    <li class="footer">Généré le Lundi Décembre 17 2012 01:09:40 pour Projet Jetpack par
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.6.1 </li>
   </ul>
 </div>


</body>
</html>
